# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
#
# secfixes:
#   3.32.1-r0:
#     - CVE-2019-11461

pkgname=nautilus
pkgver=3.36.3
pkgrel=0
pkgdesc="GNOME file manager"
url="https://wiki.gnome.org/Apps/Nautilus"
arch="all !s390x !mips !mips64" # librsvg
license="GPL-2.0-or-later"
depends="tracker-miners gsettings-desktop-schemas"
depends_dev="gnome-desktop-dev gnome-autoar-dev"
makedepends="$depends_dev itstool libxml2-dev libxml2-utils docbook-xsl
	docbook-xml libxslt intltool libexif-dev jpeg-dev tiff-dev librsvg-dev
	libseccomp-dev tracker-dev gst-plugins-base-dev meson gexiv2-dev"
checkdepends="desktop-file-utils appstream-glib"
subpackages="$pkgname-dev $pkgname-lang"
source="https://download.gnome.org/sources/nautilus/${pkgver%.*}/nautilus-$pkgver.tar.xz"

build() {
	meson \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--buildtype=plain \
		-Dtests=headless \
		. output
	ninja -C output
}

check() {
	ninja -C output test
}

package() {
	DESTDIR="$pkgdir" ninja -C output install
}

sha512sums="4dce01c20a34ed9bbff53a9886775af431754d02a4300e4647d87830502103e7436e53127b2e503af8e3a90785aa864514dbde22508ffb3e06eb43d4633fddde  nautilus-3.36.3.tar.xz"
